import { defineFakeRoute } from "vite-plugin-fake-server/client";

export default defineFakeRoute([
  {
    url: "/corp/list",
    method: "get",
    response: () => {
      let list = [
        {
          yzjmtnma: "05576300030000001151147300000E",
            vsll: "8.76", 
          lwxk: "总包",
          tiji: "815*750*378",
            xmtihc: 2,
          scmnuijm: "2025-02-24 11:22:34",
          xbyidd: "20",
          gekz: "17",
          loge: "正常",
          uzrsyryb: "正常",
          logeuijm: "2025-02-24 11:23:34"
        },
        {
          yzjmtnma: "8191192626206",
          vsll: "18.76",
          lwxk: "大货",
          tiji: "715*450*278",
          xmtihc: 2,
          scmnuijm: "2025-02-24 11:24:34",
          xbyidd: "20",
          gekz: "17",
          loge: "正常",
          uzrsyryb: "正常",
          logeuijm: "2025-02-24 11:26:34"
        }
      ];
      return {
        success: true,
        result: {
          list,
          total: 2,
          per_page: 10,
          current_page: 1
        }
      };
    }
  },
  {
    url: "/scanRecord/list",
    method: "get",
    response: () => {
      let list = [
        {
          yzjmtnma: "05576300030000001151147300000E",
          gsjmtd: "2",   
          xniehc: "0922",
          uibpvltd: "已识别",
          uibplwxk: "一库多件",
          scmnuijm: "2025-02-24 13:21:34",
        },
        {
          yzjmtnma: "8191192626206",
          gsjmtd: "1",   
          xniehc: "0192",
          uibpvltd: "已识别",
          uibplwxk: "一库多件",
          scmnuijm: "2025-02-24 14:31:32"
        },
        {
          yzjmtnma: "7451562626789",
          gsjmtd: "2",   
          xniehc: "0192",
          uibpvltd: "已识别",
          uibplwxk: "一库多件",
          scmnuijm: "2025-02-24 15:31:30"
        }
      ];
      return {
        success: true,
        result: {
          list,
          total: 3,
          per_page: 10,
          current_page: 1
        }
      };
    }
  }
]);
